<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs the EvCheck watcher object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.evcheck.html">EvCheck</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evcheck.createstopped.html">EvCheck::createStopped</a></div>
 <div class="up"><a href="class.evcheck.html">EvCheck</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="evcheck.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EvCheck::__construct</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">EvCheck::__construct</span> &mdash; <span class="dc-title">Constructs the EvCheck watcher object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-evcheck.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EvCheck::__construct</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$callback</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$data</code>
   </span>
   [, <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$priority</code>
   </span>
  ]] )</div>

  <p class="para rdfs-comment">
   Constructs the
   <a href="class.evcheck.html" class="classname">EvCheck</a>
   watcher object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-evcheck.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">callback</code></em>
    </dt>

    <dd>

     <p class="para">
      See
      <a href="ev.watcher-callbacks.html" class="link">Watcher callbacks</a>
      .
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">data</code></em>
    </dt>

    <dd>

     <p class="para">
      Custom data associated with the watcher.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">priority</code></em>
    </dt>

    <dd>

     <p class="para">
      <a href="class.ev.html#ev.constants.watcher-pri" class="link">Watcher priority</a>
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-evcheck.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns EvCheck object on success.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-evcheck.construct-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <a href="class.evprepare.html" class="classname">EvPrepare</a>
   </li>
   <li class="member">
    <span class="methodname"><a href="evloop.check.html" class="methodname" rel="rdfs-seeAlso">EvLoop::check()</a> - Creates EvCheck object associated with the current event loop
  instance</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.evcheck.html">EvCheck</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evcheck.createstopped.html">EvCheck::createStopped</a></div>
 <div class="up"><a href="class.evcheck.html">EvCheck</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
